<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<title>Document</title>
	<style>
		div{
			width:1200px;
			height:1200px;
		}
	</style>
	<script src="js/jquery-1.12.1.js"></script>
</head>
<body>
	<div>
		<img src="img/bj.jpg" alt="">
		<input type="button" value="顶端位置" onclick="alert($(window).scrollTop());" >
	</div>
</body>
</html>